const { defineConfig } = require('@vue/cli-service');
module.exports = defineConfig({
  publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
  transpileDependencies: true,
  css: {
    loaderOptions: {
      postcss: {
        postcssOptions: {
          plugins: [
            require('postcss-px-to-viewport')({
              viewportWidth: 750,
              unitPrecision: 3,
              minPixelValue: 1,
              viewportUnit: 'vw',
              selectorBlackList: ['.ignore', '.hairlines'],
              exclude: [/node_modules/],
            }),
          ],
        },
      },
    },
  },
});
